<?php

class LanguagesPack extends BaseLanguagesPack
{
    /**
     *
     * @param type $active If $active == NULL: result is all record
     * @return type object
     */
    public static function getList($active = 1) {
        $criteria=new CDbCriteria;
        if ((int) $active == 0)
            $criteria->condition = 'active = 0';
        elseif ((int) $active == 1)
            $criteria->condition = 'active > 0';
        return self::model()->findAll($criteria);
    }
    
}